/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package businessData;

import java.io.Serializable;
import java.util.ArrayList;


/**
 *
 * @author cam
 */

public class MasterPlan implements Serializable {
    
    private ProductionPlan myProductionPlan;
    private SupplyPlan mySupplyPlan;
    private StockPlan myStockPlan;
    private DistributionPlan mydistributionPlan;
    private CustomerPlan myCustomerPlan;
    public ArrayList<SnapShot> allSnapshot;

    public MasterPlan() {
        myProductionPlan = new ProductionPlan();
        mySupplyPlan = new SupplyPlan();
        myCustomerPlan = new CustomerPlan();
        myStockPlan = new StockPlan();
        mydistributionPlan = new DistributionPlan();
        allSnapshot = new  ArrayList<SnapShot>();
    }
    
    public ArrayList<SnapShot> getAllSnapshot() {
        return allSnapshot;
    }
    
    public CustomerPlan getMyCustomerPlan() {
        return myCustomerPlan;
    }

    public void setMyCustomerPlan(CustomerPlan myCustomerPlan) {
        this.myCustomerPlan = myCustomerPlan;
    }

    public ProductionPlan getMyProductionPlan() {
        return myProductionPlan;
    }

    public void setMyProductionPlan(ProductionPlan myProductionPlan) {
        this.myProductionPlan = myProductionPlan;
    }

    public SupplyPlan getMySupplyPlan() {
        return mySupplyPlan;
    }

    public void setMySupplyPlan(SupplyPlan mySupplyPlan) {
        this.mySupplyPlan = mySupplyPlan;
    }

    public StockPlan getMyStockPlan() {
        return myStockPlan;
    }

    public void setMyStockPlan(StockPlan myStockPlan) {
        this.myStockPlan = myStockPlan;
    }

    public DistributionPlan getMydistributionPlan() {
        return mydistributionPlan;
    }

    public void setMydistributionPlan(DistributionPlan mydistributionPlan) {
        this.mydistributionPlan = mydistributionPlan;
    }
    
    public void AddShot(SnapShot myShot)
    {
        allSnapshot.add(myShot);
    }

    public void addListMyCustomerPlan(ArrayList<Order> CustomerList) {
    myCustomerPlan.addList(CustomerList);
    }

    public void addChildMydistributionPlan(Distribution myDistribution) {
        mydistributionPlan.addChild(myDistribution);
        
    }

    public void addChildMyProductionPlan(Order order) {
        myProductionPlan.addChild(order);
    }

    public void addChildMySupplyPlan(Order order) {
        mySupplyPlan.addChild(order);
    }

    public void addChildMyStockPlan(Order order) {
        myStockPlan.addChild(order);
        
    }
    
    public void addChildMyCustomerPlan(Order order) 
    {
        myCustomerPlan.addChild(order);
        
    }
}
